/**
 * Author: Brent Myers
 * Time-stamp: <2008-07-23 12:48:56 bam>
 * 
 * Example Hashtable Generators
 * 
 */

#ifndef _GENHASH_H_
#define _GENHASH_H_

#include "SimpleHash.h"
#include "LinearProbe.h"
#include "Hashtable.h"

using namespace genhash;

template<int Size_, class KeyType_, class DataType_>
struct LinearProbingHashtable
{
	enum { max_size = Size_ };
	typedef KeyType_ KeyType;
	typedef DataType_ DataType;
	typedef SimpleHash<LinearProbingHashtable> HashFn;
	typedef LinearProbe<LinearProbingHashtable> CollisionStrategy;
	typedef Hashtable<CollisionStrategy> Hashtable; 
};

#endif // _GENHASH_H_
